package cn.hanna.springcloudalibaba.service.impl;

import cn.hanna.springcloud.entities.CommonResult;
import cn.hanna.springcloud.entities.Payment;
import cn.hanna.springcloudalibaba.service.PaymentService;
import org.springframework.stereotype.Component;

/**
 * @author smileha
 * @create 2021-10-22 11:20
 * @description
 */
@Component
public class PaymentServiceFallback implements PaymentService {

    @Override
    public CommonResult<Payment> paymentSQL(Long id) {
        return new CommonResult<>(444,"服务端出现异常,自动进入降级",new Payment(id,"errorSerial"));
    }
}
